package com.xzl.zuul.exceptions;

import lombok.Data;

@Data
public class MyException extends RuntimeException {
    private String message = "服务器异常";
    private int code = 500;

    public MyException(String exception) {
        this.message = exception;
    }

    public MyException(int code, String message) {
        this.message = message;
        this.code = code;
    }
}